package com.fds.app.st.process;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.fds.app.comm.annotation.TrProc;
import com.fds.app.comm.context.Combuf;
import com.fds.app.comm.enumeration.ProcLib;
import com.fds.app.comm.enumeration.TrTable;
import com.fds.app.comm.service.TrProcessable;

@Component
@TrProc(table = TrTable.TR_STOCK, procLib = ProcLib.L_ST100)
public class TrProcSt100 implements TrProcessable {
	private Logger logger = LoggerFactory.getLogger(this.getClass());

	@Autowired
	private Combuf combuf;

	@Override
	public void init() {
		logger.info("TrProcSt100 >> init");

		dataInit();
	}

	@Override
	public void process() {
		logger.info("TrProcSt100 >> process");

	}

	@Override
	public void finish() {
		logger.info("TrProcSt100 >> finish");
	}

	private void dataInit() {
		/*----------------------------------------------------------------------
		 *@1.1 TR_STOCK 구조체전환
		----------------------------------------------------------------------*/
		// 할필요 없음

		/*----------------------------------------------------------------------
		 *@1.2 유효거래코드 확인
		----------------------------------------------------------------------*/
		// 여기서 꼭 해야하나?
		// CODE_JOB 테이블에서 PROC_LIB를 보고 여기로 들어온건데.

		/*----------------------------------------------------------------------
		 *@1.3 거래유효성 Check(헷지펀드,결제종목,Sub-A/C등)
		----------------------------------------------------------------------*/

		/*----------------------------------------------------------------------
		 *@1.4 주식종목정보 확인
		----------------------------------------------------------------------*/
		// 이것도 여기서 하는 것 맞지않음.
		// NvPreInfoItemProcessor에서 공통으로 처리하도록 해야할 것 같음.

		/*----------------------------------------------------------------------
		 *@1.5 환산단위 적용한 거래환율 Get  [거래환율을 당일환율로 적용]
		----------------------------------------------------------------------*/
		
		/*----------------------------------------------------------------------
	     *@1.6 환산단위 적용한 결제환율 Get  [결제환율을 당일환율로 적용]
	    ----------------------------------------------------------------------*/
		
		/*----------------------------------------------------------------------
	     *@1.7 펀드통화기준 환산금액 설정[거래환율기준]
	    ----------------------------------------------------------------------*/
	    
		/*----------------------------------------------------------------------
	     *@1.8 펀드통화기준 결제금액 환산금액 설정[결제환율기준] - GC관련 수정 2014.05.16
	    ----------------------------------------------------------------------*/
	}
}